import java.util.Scanner;

/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2212 2213
 * @Package: PACKAGE_NAME
 * @File: ScoreLevel.java
 * @Time: 2022/11/29 8:05
 * @Author: abcque
 * @Description:将百分之成绩转换为五级制成绩
 * @Modifier
 * @ModifyDate
 * @ModifyRemark
 */
public class ScoreLevel {
    public static void main(String[] args) {
        // step1 常见成绩变量 score
        int score;
        // step2 输入用户成绩
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要转换的百分制成绩：");
        score = scanner.nextInt();

        // step3 根据规则输出成绩的等级
        if ((90 <= score) && (score <= 100)) {
            System.out.println("成绩登记是：A");
        } else {
            if ((80 <= score) && (score <= 89)) {
                System.out.println("成绩登记是：B");
            } else {
                if ((70 <= score) && (score <= 79)) {
                    System.out.println("成绩登记是：C");
                } else {
                    if ((60 <= score) && (score <= 69)) {
                        System.out.println("成绩登记是：D");
                    } else {
                        if ((0 <= score) && (score <= 59)) {
                            System.out.println("成绩登记是：F");
                        }
                    }
                }
            }
        }
    }
}
